package com.lesson01;

import java.lang.annotation.ElementType;

//所有类型的Class
public class Test04 {
    public static void main(String[] args) {

        //获取Class
        Class c1 = Object.class;        //基础类
        Class c2 = Comparable.class;    //接口
        Class c3 = String[].class;      //数组
        Class c4 = int[][].class;       //二维数组
        Class c5 = Override.class;      //注解
        Class c6 = ElementType.class;   //枚举
        Class c7 = Integer.class;       //包装类
        Class c8 = void.class;          //void类型
        Class c9 = Class.class;         //Class类型

        //只要元素类型和维度一样，就是同一个Class
        System.out.println(c1);
        System.out.println(c2);
        System.out.println(c3);
        System.out.println(c4);
        System.out.println(c5);
        System.out.println(c6);
        System.out.println(c7);
        System.out.println(c8);
        System.out.println(c9);
    }
}
